@import '@Scss/main_variables.scss';
* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
html, body {
  width: 100%;
  background: white;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}


// 定义一个混入用于设置 margin 和 padding
@mixin set-spacing($property, $direction, $value) {
  #{$property}-#{$direction}: $value !important;
}

// 定义一个混入用于清除 margin 和 padding
@mixin clear-spacing($property, $direction) {
  #{$property}-#{$direction}: 0 !important;
}

// 使用循环生成样式
@each $direction in top, bottom, left, right {
  .margin_#{$direction} {
    @include set-spacing(margin, $direction, $MarginPadding);
  }
  
  .margin_#{$direction}_clear {
    @include clear-spacing(margin, $direction);
  }
  
  .padding_#{$direction} {
    @include set-spacing(padding, $direction, $MarginPadding);
  }
  
  .padding_#{$direction}_clear {
    @include clear-spacing(padding, $direction);
  }
}
// 全局分页样式边距自定义
:where(.css-dev-only-do-not-override-98ntnt).ant-table-wrapper .ant-table-pagination.ant-pagination{
  margin: $MarginPadding 0;
}
// 全局表格样式边距自定义
:where(.css-dev-only-do-not-override-98ntnt).ant-table-wrapper .ant-table{
  margin:$MarginPadding 0;
}
// 全局独立分页边距自定义
:where(.css-dev-only-do-not-override-98ntnt).ant-pagination{
  margin:0 0 $MarginPadding 0;
}

:where(.css-dev-only-do-not-override-5wsri9).ant-modal .ant-modal-content{
  padding: $MarginPadding;
}
.text_align{
  text-align: center;
}

#App {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
#LayoutBox {
  height: 100vh;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
#Sider{
  overflow: auto;
  height: 100vh;
  .app_name{
    line-height: 1;
    height: 64px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:larger;
    font-weight: bold;
  }
}

#ContentLayoutBox{
  display: flex;
  flex-direction: column;
  height: 100vh; /* 设置整个应用的高度为视口高度 */
  #Header {
    padding: $MarginPadding;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .user_name {
      display: flex;
      align-items: center;
    }
  }

  #Content {
    padding: $MarginPadding;
    flex: 1;
    overflow: auto;
    height: calc(100vh - ((4 * #{$MarginPadding})));
  }
}
#TagComponents {
  .Tag_Components_box{
    margin: 0 0 $MarginPadding 0;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  :where(.css-dev-only-do-not-override-98ntnt).ant-card .ant-card-body{
    padding: $MarginPadding;
  }
}

.Page_Index_card{
  height:calc(95vh - (9*#{$MarginPadding} + 4px));
 } 

 #IndexTopForm  {
  margin-bottom: $MarginPadding;
  .form_box{                                 
    width: 100%;
    display: flex;
    align-items: center;
    .form_left{
      flex: 1;
      align-items: center;
    }
    .form_right{
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
  }
} 

#ComponentsPagination{
  margin: $MarginPadding 0;
}

#TagComponents{
  .Tag_Components_box{
    margin: 0 0 $MarginPadding 0;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ant-tag{
    display: flex;
    align-items: center;
    justify-content: center;
    padding:($MarginPadding / 4) $MarginPadding;
  }
}